package com.zsrt.java.day20161229.wrl.demo05;

import org.junit.Test;

public class CarTest {

	@Test
	public void test() {
		
		// new 1 个对象调用无参构造方法
		Car car = new Car();
		car.setBrand("法拉利");
		car.setPrice(8000000.1);
		System.out.println(car.toString());
		
		// new 1 个对象调用有参构造方法
		Car car2 = new Car("奥迪",666666);
		System.out.println(car2.toString());
	}

}
